// 请求的数据
export interface EmployeeRequest {
  name: string | undefined;
  departmentId: number | undefined;
}

// 返回的数据
interface EmployeeInfo {
  id: number;
  key: number;
  name: string;
  department: string;
  hiredate: string;
  level: string;
}

// 表格数据类型
export type EmployeeResponse = EmployeeInfo[] | undefined;

// 名字
export type Name = string | undefined;

// 部门
export type Dept = number | undefined;

// 更新名字
export interface UpdateCurEmployeeName {
  (params: string | undefined): void;
}

// 更新部门
export interface UpdateCurEmployeeDept {
  (params: number | undefined): void;
}
